package com.ybkj.o2o.zhuanxian.common;

import java.util.List;
import java.util.Map;

public class Result<T> {

  private boolean success;

  private String message;

  private List<T> data;

  private String errorcode;

  private Object object;

  private Long countnum;

  private T result;

  private Long longValue;

  private Map<String, Object> map;

  public Result() {
    super();
  }

  public boolean isSuccess() {
    return success;
  }

  public void setSuccess(boolean success) {
    this.success = success;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public List<T> getData() {
    return data;
  }

  public void setData(List<T> data) {
    this.data = data;
  }

  public String getErrorcode() {
    return errorcode;
  }

  public void setErrorcode(String errorcode) {
    this.errorcode = errorcode;
  }

  public Object getObject() {
    return object;
  }

  public void setObject(Object object) {
    this.object = object;
  }
  
  /**
   * 成功信息 .
   * @param success 成功
   * @param message 信息
   */
  public Result(boolean success, String message) {
    super();
    this.success = success;
    this.message = message;
  }

  public Long getCountnum() {
    return countnum;
  }

  public void setCountnum(Long countnum) {
    this.countnum = countnum;
  }

  public T getResult() {
    return result;
  }

  public void setResult(T result) {
    this.result = result;
  }

  public Long getLongValue() {
    return longValue;
  }

  public void setLongValue(Long longValue) {
    this.longValue = longValue;
  }

  public Map<String, Object> getMap() {
    return map;
  }

  public void setMap(Map<String, Object> map) {
    this.map = map;
  }



}
